package CollectionDemo.ShowHand.pojo;
//牌
public class Desk {
    //花色
    private String follow;
    //点数
    private int value;

    public Desk(String follow, int value) {
        this.follow = follow;
        this.value = value;
    }

    @Override
    public String toString() {
        if (this.value >= 1 && this.value <=10) {
            return (follow + "" + value);
        } else if (this.value == 11) {
            return (follow + "J");
        } else if (this.value == 12) {
            return (follow + "Q");
        } else if (this.value == 13) {
            return (follow + "K");
        } else if (this.value == 14) {
            return "小王";
        } else {
            return "大王";
        }

    }

    public String getFollow() {
        return follow;
    }

    public void setFollow(String follow) {
        this.follow = follow;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public int getValue() {
        return this.value;
    }
}
